package com.habdqn.studentmanager.bean;

/**
 * @author Administrator
 * 产品实体类
 * 2017年5月13日
 * 
 */
public class Product extends Bean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 产品编号
	 */
	private Integer id;
	
	/**
	 * 产品名称
	 */
	private String name;
	
	/**
	 * 产品类型
	 */
	private Dictionary type;
	
	/**
	 * 备注
	 */
	private String remarks;

	public static Product make(Integer id, String name, Integer type) {
		Product product = new Product();
		product.setId(id);
		product.setName(name);
		product.setType(Dictionary.make(null, null, type));
		return product;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Dictionary getType() {
		return type;
	}
	
	public void setType(Dictionary type) {
		this.type = type;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
}
